export default {
  methods: {
    closeTagView: function() {
      this.$store.dispatch('tagsView/delView', this.$route)
      this.$router.go(-1)
    },
    closeTagView2: function() {
      this.$store.dispatch('tagsView/delView', this.$route)
    },
    setTagViewTitle(title) {
      this.$nextTick(() => {
        this.tempRoute = Object.assign({}, this.$route)
        const route = Object.assign({}, this.tempRoute, { title: title })
        this.$store.dispatch('tagsView/updateVisitedView', route)
      })
    }
  }
}
